package testCase;

import junit.framework.TestCase;
import main.*;

public class testIOController extends TestCase{
	private IO io;
	private IOController ioController;
	private Field field;

	/**
	* Sets up the test fixture.
	*
	* Called before every test case method.
	*/
	public void setUp() { 
		io = new IO();
		ioController = new IOController(io);
		field = new Field();
	}

	/**
	* Tears down the test fixture.
	*
	* Called after every test case method.
	*/
	public void tearDown() {}
	
	
	
	
	
	/**
	 * Test the constructor
	 * 
	 * Input : none
	 * Expected result: Normal 
	 */
	public void testConstructor() {}
	
	
	
	
	
	
	
	/**
	 * Test the method setField()
	 * 
	 * Input : field
	 * Expected result: Normal 
	 */
	public void testSetFieldNormal() {
		ioController.setField(field);
	}

	
	/** Test the method showNewRoundScreen()
	 * 
	 * Input : none
	 * Expected result: Normal 
	 */
	public void testShowNewRoundScreen() {
		ioController.showNewRoundScreen();
	}
	
	/** Test the method showEndGameScreen()
	 * 
	 * Input : none
	 * Expected result: Normal 
	 */
	public void testshowEndGameScreen() {
		ioController.showEndGameScreen();
	}
	
		
	
	/**
	 * Test the method isValidValue()
	 * 
	 * Input : 0 1 2
	 * Expected Output: false 
	 *
	public void testIsValidValue012() {
		boolean result;
		result = ioController.isValidValue(0,1,2);
		assertEquals(result, false);
	}
	 
	/**
	 * Test the method isValidValue
	 * 
	 * Input : 1 0 2
	 * Expected Output: true
	 *
	public void testIsValidValue102() {
		boolean result;
		result = ioController.isValidValue(1,0,2);
		assertEquals(result, true);
	}
	/**
	 * Test the method isValidValue
	 * 
	 * Input : 2 1 0
	 * Expected Output: false
	 *
	public void testIsValidValue210() {
		boolean result;
		result = ioController.isValidValue(2,1,0);
		assertEquals(result, false);
	}
	/**
	 * Test the method isValidValue
	 * 
	 * Input : 2 0 1
	 * Expected Output: false
	 *
	public void testIsValidValue201() {
		boolean result;
		result = ioController.isValidValue(2,0,1);
		assertEquals(result, false);
	}
	/**
	 * Test the method isValidValue
	 * 
	 * Input : 0 0 0
	 * Expected Output: true
	 *
	public void testIsValidValue000() {
		boolean result;
		result = ioController.isValidValue(0,0,0);
		assertEquals(result, true);
	}
	/**
	 * Test the method isValidValue
	 * 
	 * Input : 5 0 10
	 * Expected Output: true
	 *
	public void testIsValidValue5010() {
		boolean result;
		result = ioController.isValidValue(5,0,10);
		assertEquals(result,true);
	}
	/**
	 * Test the method isValidValue
	 * 
	 * Input : 5 5 10
	 * Expected Output: true
	 *
	public void testIsValidValue5510() {
		boolean result;
		result = ioController.isValidValue(5,5,10);
		assertEquals(result, true);
	}
	/**
	 * Test the method isValidValue
	 * 
	 * Input : 10 5 10
	 * Expected Output: 
	 *
	public void testIsValidValue10510() {
		boolean result;
		result = ioController.isValidValue(10,5,10);
		assertEquals(result, true);
	}
	*/
	
	
}
